package com.xuecheng.base.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Author 加油学习的梁仔
 * @Description: 分页参数
 * @Date 2023/5/20 15:52
 * @Version 1.0
 */
@Data
@ToString
public class PageParams {
    //当前页
    @ApiModelProperty("当前页码")
    private Long pageNo = 1L;
    //每页显示记录数
    @ApiModelProperty("每页显示记录数")
    private Long pageSize = 30L;

    public PageParams(){

    }
    public PageParams(long pageNo, long pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
